import request from "@/utils/request";

// 查询患者信息列表
export function tcmPrescription(query) {
  return request({
    url: "/workstation/tcmPrescription/list",
    method: "get",
    params: query,
  });
}

// 查询下拉列表数据
export function levellist(query) {
  return request({
    url: "/workstation/tcmPrescription/level/list",
    method: "get",
    params: query,
  });
}
// 查询病症
export function medicalRecordNoname(medicalRecordNo, diagType) {
  return request({
    url:
      "/workstation/tcmPrescription/name/" + medicalRecordNo + "/" + diagType,
    method: "get",
  });
}

//查询中药饮片
export function traditional(medicalRecordNo, diagType) {
  return request({
    url: "/workstation/tcmPrescription/traditional/" + medicalRecordNo,
    method: "get",
  });
}

// 审核
export function audit(data) {
  return request({
    url: "/workstation/tcmPrescription/audit",
    method: "post",
    data: data,
  });
}

// 导出
export function exportyaofang(data) {
  return request({
    url: "/workstation/tcmPrescription/export",
    method: "post",
    data: data,
    responseType: 'blob',
  });
}
